package com.example.module_home.dagger

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.module_home.R
import com.example.module_home.dagger.di.DaggerLoginComponent
import com.example.module_home.dagger.module.NetWorkModule
import javax.inject.Inject

class DaggerLoginActivity : AppCompatActivity() {

    @Inject
    lateinit var daggerLoginViewModel: DaggerLoginViewModel

    override fun onCreate(savedInstanceState: Bundle?) {

        DaggerLoginComponent.create().inject(this)

        super.onCreate(savedInstanceState)
        setContentView(R.layout.home_activity_dagger_login)

        daggerLoginViewModel.fetchData()
    }
}